<?php 
/**
* ============================================================================
* (C) 2007-2011
* {@link http://fanhougame.com/}
* ============================================================================
* @link http://hi.baidu.com/wangxinhui419/
* @Copyright (c) 2006-2011  2011-2-11 {@link http://hi.baidu.com/wangxinhui419/}
* @author charles
* @license http://www.php.net/ PHP License 5.2.6
* @version 2011-2-11
* @package 
*/

require_once 'simplehtmldom/simple_html_dom.php';
class htmldom
{
	static $class;
	
	private $simple_html_dom_node;
	private $simple_html_dom;
	
	private function __construct(){
		$this->simple_html_dom_node=new simple_html_dom();
		$this->simple_html_dom=new simple_html_dom();
	}
	private function __clone(){}
	
	static function __Auto()
	{
		if(!self::$class instanceof self)
		{
			self::$class=new self();
		}
		return self::$class;
	}
	
	public function file_get_html()
	{
		$avgs=func_get_args();
		$return=call_user_func_array('file_get_html',$avgs);
		return $return;
	}
	
	public function str_get_html()
	{
		$avgs=func_get_args();
		$return=call_user_func_array('str_get_html',$avgs);
		return $return;		
	}
	
	public function dump_html_tree()
	{
		$avgs=func_get_args();
		$return=call_user_func_array('dump_html_tree',$avgs);
		return $return;				
	}
	
	public function file_get_dom()
	{
		$avgs=func_get_args();
		$return=call_user_func_array('file_get_dom',$avgs);
		return $return;				
	}
	
	public function str_get_dom()
	{
		$avgs=func_get_args();
		$return=call_user_func_array('str_get_dom',$avgs);
		return $return;				
	}
	
	public function simple_html_dom_node()
	{
		return $this->simple_html_dom_node;
	}
	
	public function simple_html_dom()
	{
		return $this->simple_html_dom;
	}
	
	
}